<%@page import="com.winexpress.util.SessionAttributes"%>
<%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>wineXpress Admin Home</title>
  
    </head>
    <body>
        <t:adminNavigation/>

        <div class="header">
            <div class="logo_img"><img alt="Site Name" src="/WineXpressClient/resources/images/logo.png"></div>
        </div>

        <div class="panel panel-default" style="width:70%; margin-left: 15%; margin-top: 10px">
            <div class="panel-heading">
                <h3 class="panel-title">Delete Customer Account</h3>
            </div>
            <div class="panel-body">
                <div>
                    <ul class="nav nav-tabs" id="myTab">
                        <li class="active"><a href="#email" data-toggle="tab">Search by email</a></li>
                        <li><a href="#id" data-toggle="tab">Search by ID</a></li>
                    </ul>
                </div>

                <div class="tab-content" style="margin-top: 2%">
                    <div class="tab-pane active" id="email">
                        <form class="form-horizontal" role="form" id="defaultForm"  name="cancelAccount" action="/WineXpressClient/accountManagement/customerSearchResult" method="post">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">Email</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="email" placeholder="Email">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <button type="submit" class="btn btn-default">Search Customer</button>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="tab-pane" id="id" >
                        <form class="form-horizontal" role="form" id="defaultForm2"  name="cancelAccount" action="/WineXpressClient/accountManagement/customerSearchResult" method="post">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">Customer ID</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="id" placeholder="Customer ID">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <button type="submit" class="btn btn-default">Search Customer</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <script >
                    $('#myTab a:list').click(function(e) {
                        e.preventDefault()
                        $(this).tab('show')
                    })
                </script>
            </div>


        </div>
    </body>
</html>
